package com.hqyj.ctxp.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * @className: ShopCart
 * @description: TODO 类描述
 * @author: mmm
 * @date: 2022/12/8
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("shop_cart")
public class ShopCart {

    @TableId(value = "shop_id",type = IdType.AUTO)
    private Integer shopId;

    @TableField(value = "product_id")
    private Integer productId;

    @TableField(value = "user_no")
    private Integer userNo;

    @TableField(value = "number")
    private Integer number;

    @TableField(value = "create_time",fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createTime;

    @TableField(exist = false)
    private Product product;

}
